public class Demo23 {
    public static void main(String[] args) {
        int sum = 0;
        int n = 0;
        while (n < 100) {
            n++;
            sum += n;
        }
        System.out.println(sum);
    }
}
